package cn.xiaonhui;

import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;

public class exampleTest40 {
	public static void main(String[] args){
		
		Map map = new HashMap();
		map.put("name", "老戴");
		map.put("sex", "男");
		map.put("age", "20");
	
	Collection vaCollection = map.values();
	Iterator iterator = vaCollection.iterator();
	while (iterator.hasNext()){
		Object value = iterator.next();
		System.out.println(value);
	}
	System.out.println(vaCollection);
	}

}